package day05;

public class OverLoadingDemo {
    public static void main(String[] args) {
     say();
     say("haihai");
     say("李飞");
     say("dog",5);
     say("大狗",6);
    }

    public static void say() {
        System.out.println("大家好，我是god");
    }
    public static void say(String name) {
        System.out.println("大家好我是"+name);
    }
    public static void say(String name,int age){
         System.out.println("大家好我是"+name+"今年"+age+"岁了");
    }
    //public static int say(return 5){}参数列表只有参数名和类型
    //public static int say(String name){}重载与返回值无关
    //public static void say(String adress,int age){}重载与参数无关
}
